import request from '@/utils/request'

// 查询特色项目列表
export function listProject(query) {
  return request({
    url: '/masterrecord/project/list',
    method: 'get',
    params: query
  })
}

// 查询特色项目详细
export function getProject(ctId) {
  return request({
    url: '/masterrecord/project/' + ctId,
    method: 'get'
  })
}

// 新增特色项目
export function addProject(data) {
  return request({
    url: '/masterrecord/project',
    method: 'post',
    data: data
  })
}

// 修改特色项目
export function updateProject(data) {
  return request({
    url: '/masterrecord/project/edit',
    method: 'post',
    data: data
  })
}

// 删除特色项目
export function delProject(ctId) {
  return request({
    url: '/masterrecord/project/delete/' + ctId,
    method: 'post'
  })
}

// 导出特色项目
export function exportProject(query) {
  return request({
    url: '/masterrecord/project/export',
    method: 'get',
    params: query
  })
}